/**  
* <p>Title: ZoneParkingController.java</p >  
* <p>Description: </p >  
* <p>Company:luo.com</p >  
* @author 魏家洛 
* @date 2019年1月25日  
* @version 1.0  
*/  
package com.pmsystem.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.pmsystem.pojo.ZoneParking;
import com.pmsystem.service.ZoneParkingService;

/**  
* <p>Title: ZoneParkingController</p >  
* <p>Description: </p >  
* @author 魏家洛  
* @date 2019年1月25日  
*/
@Controller
@RequestMapping("zoneparking")
public class ZoneParkingController {
	@Autowired
	ZoneParkingService zoneParkingService;
	
	@RequestMapping("findallzoneparking")
	@ResponseBody
	public List<ZoneParking> findAllZoneParking(){
		return zoneParkingService.getAllParkingArea();
	}
	/**
	 * <p>Title: addZoneParking</p >  
	 * <p>Description:添加停车分区信息</p >  
	 * @author 魏家洛
	 * @param zoneParking
	 * @return
	 */
	@RequestMapping("addzoneparking")
	@ResponseBody
	public boolean addZoneParking(ZoneParking zoneParking) {
		return zoneParkingService.addZoneParking(zoneParking);
	}
	/**
	 * <p>Title: deleteZoneParking</p >  
	 * <p>Description:删除停车场分区信息</p >  
	 * @author 魏家洛
	 * @param zoneParkingId
	 * @return
	 */
	@RequestMapping("deletezoneparking")
	@ResponseBody
	public boolean deleteZoneParking(Integer zoneParkingId) {
		return zoneParkingService.deleteZoneParking(zoneParkingId);
	}
	/**
	 * <p>Title: updateZoneParking</p >  
	 * <p>Description:更新停车分区信息</p >  
	 * @author 魏家洛
	 * @param zoneParking
	 * @return
	 */
	@RequestMapping("updatezoneparking")
	@ResponseBody
	public boolean updateZoneParking(ZoneParking zoneParking) {
		return zoneParkingService.updateZoneParking(zoneParking);
	}
}
